all: monopoly

monopoly: RandomNumber.o PlayerClass.o SpaceClass.o Monopoly.o Const.h
	g++ -g -Wall RandomNumber.o PlayerClass.o SpaceClass.o Monopoly.o -o monopoly

RandomNumber.o: RandomNumber.h RandomNumber.cpp
	g++ -g -c RandomNumber.cpp -o RandomNumber.o

PlayerClass.o: PlayerClass.h PlayerClass.cpp RandomNumber.o
	g++ -g -c PlayerClass.cpp -o PlayerClass.o

SpaceClass.o: SpaceClass.h SpaceClass.cpp PlayerClass.h PlayerClass.cpp
	g++ -g -c SpaceClass.cpp -o SpaceClass.o

Monopoly.o: Monopoly.cpp functions.cpp
	g++ -g -c Monopoly.cpp -o Monopoly.o

clean:
	rm -f *.o
